package com.hellohoper.cloud.zipkin;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.sleuth.zipkin.stream.EnableZipkinStreamServer;
import zipkin.server.EnableZipkinServer;

/**
 * 主程序
 * Created by hk on 17/8/24.
 */
@SpringBootApplication
// @EnableZipkinServer
@EnableZipkinStreamServer
@EnableEurekaClient
public class ZipkinServerApp implements CommandLineRunner {

    private static final Logger LOGGER = LoggerFactory.getLogger(ZipkinServerApp.class);

    public static void main(String[] args) {
        SpringApplication.run(ZipkinServerApp.class, args);
    }

    @Override
    public void run(String... strings) throws Exception {
        LOGGER.info("程序启动。。。。。。。。");
    }
}
